package behavior.nullObject;
/**
 * 空对象模式
 * @author houkai
 *
 */
public class NullObjectPatternDemo {
	public static void main(String[] args) {
		AbstractCustomer customer1 = CustomerFactory.getCustomer("A");
		AbstractCustomer customer2 = CustomerFactory.getCustomer("C");
		AbstractCustomer customer3 = CustomerFactory.getCustomer("D");
		
		System.out.println(customer1.getName());
		System.out.println(customer2.getName());
		System.out.println(customer3.getName());
		
	}
}
